import request from "../uilts/request";

// 获取客户
export function getCustomer(params) {
  return  request({
    url:"api/customer/search",
    method:"get",
    params
  })
}
// 删除客户
export function delCustomer(id) {
  return  request({
    url:"api/customer/delete/"+id,
    method:"delete"
  })
}
// 新增客户
export function addCustomer(data) {
  return  request({
    url:"api/customer/add",
    method:"POST",
    data
  })
}
//编辑客户
export function modifyCustomer(data) {
  return  request({
    url:"api/customer/modify",
    method:"put",
    data
  })
}


